package snapex.core;

import lombok.Getter;
import lombok.Setter;

@Getter 
public enum Status {
	
	Ok(0,"ok"), 
	Unauthorized(401,"unauthoirized"),
	InternalError(1000,"internal error"),
	ValidationError(2000, "validation error"),
	OperationNotAllow(2001, "Operation Not Allowed");
	
	@Setter
	Integer code;
	
	@Setter
	String msg;
	
	private Status(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}	
}
